public class OddEven { 
   
public static void main(String[] args) {
      
        int userInput;  // Accept any number from user input

System.out.print("Please type your number: ");//Message prompt for user input              
userInput = TextIO.getlnInt();// Reading user input

if(userInput %2 == 0)
// % is a modulus operator, any number with %2=0 is an even number

System.out.println("Your number is even!");
else 
System.out.println("Your number is odd!");

	}
}





